package com.charlotte.study.gupao.service;

import com.charlotte.study.gupaoapi.client.LogServiceFeignClient;
import com.charlotte.study.gupaoapi.dto.LogDTO;
import com.charlotte.study.gupaoapi.dto.UserDTO;
import com.charlotte.study.gupaoapi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class UserServiceImpl implements UserService {

    @Autowired
    LogServiceFeignClient logServiceFeignClient;

    @Override
    public List<UserDTO> users() {
        List<LogDTO> logs = logServiceFeignClient.logs();
        System.out.println(logs);
        return new ArrayList<>();
    }

    @Override
    public void insert(UserDTO userDTO) {

    }
}
